import {createStore} from "vuex";
import createPersistedState from "vuex-persistedstate";
import {isDev} from "@/utils";
import message from "./modules/message"; // 聊天sotre模块
import user from "./modules/user.ts"; // 用户store模块
import content from "./modules/content.ts"; // 内容store模块 主要是创建话术和素材使用

// 创建一个新的 store 实例
const store = createStore({
    devtools: isDev,
    strict: isDev,
    plugins: [createPersistedState()],
    modules: {
        user,
        message,
        content,
    },
});

export default store;
